package src.com;

public class Demo09 {
    public static int Array(int [] arr) {
        int max = arr[0];
        for(int i=0;i<arr.length;i++){
            if(max<arr[i]){
                max=arr[i];
            }
        }
        return max;
    }
    public static void main(String[] args) {
        int arr[] = {11,22,33,44,55};
        int ArrayMax=Array(arr);
        System.out.println("数组最大值为："+ArrayMax);
    }
}
